package com.lagou.edu.notice.remote;

import com.lagou.edu.notice.dto.QueueMsgDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.UnsupportedEncodingException;

@FeignClient(name = "edu-notice-boot", path="/message")
public interface MqRemoteService {

//    @RequestMapping("/rabbit/{message}")
//    public void receive(@PathVariable String message) throws UnsupportedEncodingException;

    @RequestMapping("/rabbit")
    public void receive(@RequestBody QueueMsgDTO queueMsgDTO) throws UnsupportedEncodingException;
}
